/*
 * Copyright Iain Sproat, 2009
 * 
 *
 */
using System;

namespace FreeBase.Domain
{
	/// <summary>
	/// This is the equivalent of freebase /type/float
	/// </summary>
	public class FBFloat : FBValueType<float>
	{
		public FBFloat()
		{
		}
		public FBFloat( string val )
		{
			this.Value = float.Parse(val);
		}
		
		public override float Value { get; set; }
		
		public static implicit operator FBFloat( float floatValue )
		{
			FBFloat f = new FBFloat();
			f.Value = floatValue;
			return f;
		}
		
		public static implicit operator FBFloat( string floatValue )
		{
			FBFloat f = new FBFloat();
			f.Value = float.Parse( floatValue );
			return f;
		}
	}
}
